package com.study.cloud.custom.registerclass;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableMyReigster
public class BeanReigsterApp {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(BeanReigsterApp.class);
        Object helloService = applicationContext.getBean("helloService");
        System.out.println(helloService);

    }
}
